<!DOCTYPE html>
<html lang="ch-cn" xmlns:th="http://www.thymeleaf.org">

<!--@author vybfi-->
<!--@param-->
<!--@return 无-->

<head th:replace="layout::header">
</head>
<title>好康的</title>
<body>
<div style="height: 50px;"></div>

    <div class="paper container border row" style="margin-top: 20px; padding: 20px">
        <form autocomplete="off" th:action="@{/register/save}" th:object="${player}" method="post" class="col-6 col" role="form"
              style="margin-left: auto;margin-right: auto">
            <div class="alert alert-danger" th:if="${param.error}"
                 th:text="${session.SPRING_SECURITY_LAST_EXCEPTION.message}"></div>
            <h3 class="textAlign">注册</h3>
            <div class="paper border">
                    <input type="text" th:field="*{userName}" placeholder="用户名" class="form-control"
                           style="margin-left: auto;margin-right: auto"/>
            </div>
            <div class="paper border">
                    <input type="password" th:field="*{password}" placeholder="密码" class="form-control"
                           style="margin-left: auto;margin-right: auto"/>
            </div>

<!--            <input type="hidden" name="_csrf" th:value="${_csrf.token}" />-->

            <div class="paper border">
                    <button type="submit" class="btn border"
                            style="display:block; margin-left: auto;margin-right: auto">开启新世界</button>
            </div>
            <!-- <span th:utext="${successMessage}"></span> -->
        </form>
    </div>
</body>
</html>